// todo 最外层大盒子
.contentBox {
  width: 100%;
  height: 400px;
  margin: 0 auto;
  border-radius: 5px;
  user-select: none;
  // todo 内容盒子
  // ??? 鼠标悬停样式
  .carousel:hover {
    // todo 左按钮
    .carouselLeft:active {
      background-color: rgba(0, 0, 0, 0.8);
      transition: background-color 0s ease-out;
    }
    .carouselLeft {
      .icon {
        display: inline-block;
      }
      position: absolute;
      top: 150px;
      width: 40px;
      height: 100px;
      color: rgba(0, 0, 0, 0.8);
      font-size: 20px;
      line-height: 100px;
      text-align: center;
      background-color: rgba(255, 255, 255, 0.5);
      border-radius: 0px 10px 10px 0px;
      //   transform: translate(0, -50%);
      transition: background-color 0.5s ease-out;
    }
    // todo 右按钮
    .carouselRight:active {
      background-color: rgba(255, 255, 255, 0.5);
      transition: background-color 0s ease-out;
    }
    .carouselRight {
      .icon {
        display: inline-block;
      }
      position: absolute;
      top: 150px;
      right: 0px;
      width: 40px;
      height: 100px;
      color: rgba(255, 255, 255, 0.5);
      font-size: 20px;
      line-height: 100px;
      text-align: center;
      background-color: rgba(0, 0, 0, 0.8);
      border-radius: 10px 0px 0px 10px;
      //   transform: translate(0, -50%);
      transition: background-color 0.5s ease-out;
    }
    // todo 锚点
    .carouselAnchorPoint {
      position: absolute;
      bottom: 0px;
      left: 50%;
      height: 8px;
      margin-bottom: 10px;
      padding: 2px 0px 2px 20px;
      line-height: 15px;
      background-color: rgba(0, 0, 0, 0.8);
      border-radius: 10px;
      transform: translate(-50%, 0);
      transition: background-color 0.5s ease-out;
      div[class^='carouselAnchorPointLi'] {
        float: left;
        width: 45px;
        height: 4px;
        margin-right: 20px;
        padding: 0px 5px 0px 5px;
        background-color: transparent;
        border-radius: 6px;
        // transition: background-color 0.5s ease-out;
        .carouselAnchorPointLiSon {
          width: 100%;
          height: 100%;
          background-color: rgba(255, 255, 255, 0.5);
        }
        .carouselAnchorPointLiSonChange {
          background-color: transparent;
        }
      }

      div[class^='carouselAnchorPointLiChange'] {
        // background-color: #22517e;
        background-color: rgba(255, 255, 255, 0.8);
        // transition: all 0.5s ease-out;
      }
      div[class^='carouselAnchorPointLi']:active {
        background-color: rgba(0, 0, 0, 0.9);
        transition: background-color 0s ease-out;
      }
    }
  }
  // todo 内容盒子
  .carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
    // todo 图片内容
    .superBox {
      position: absolute;
      height: 100%;
      border-radius: 5px;
      // transition: all 0.5s ease-out;
      .carouselContent {
        float: left;
        height: 100%;
        border-radius: 5px;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          border-radius: 5px;
        }
      }
    }
    .stillSuperBox {
      position: absolute;
      left: 0px;
      width: 4500px;
      height: 100%;
      border-radius: 5px;
      .carouselContent {
        float: left;
        width: 900px;
        height: 100%;
        border-radius: 5px;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          border-radius: 5px;
        }
      }
    }
    .icon {
      display: none;
    }
  }
}
